import Vue from 'vue'
import Router from 'vue-router'

import Home from '../components/home/Home.vue'
import Discover from '../components/discover/Discover.vue'
import Mine from '../components/mine/Mine.vue'
import Order from '../components/order/Order.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/discover',
      name: 'discover',
      component: Discover
    },
    {
      path: '/mine',
      name: 'mine',
      component: Mine
    },
    {
      path: '/order',
      name: 'order',
      component: Order
    },
    {
    	path: "/",
    	redirect: "/home"
    },
    {
    	path: "**",
    	redirect: "/home"
    }
  ]
})
